Functions


Accessing the Menu Font

GetMenuFont Obtains the font used in a menu.
SetMenuFont Sets the font to be used in a menu.

Adding a Menu Item to a Menu

AppendMenuItemText Appends a menu item to a menu.
InsertMenuItemText Inserts a menu item into a menu.

Associating Data With Menu Items

GetMenuItemProperty Obtains a piece of data that has been previously associated with a menu item.
GetMenuItemPropertySize Obtains the size of a piece of data that has been previously associated with a menu item.
RemoveMenuItemProperty Removes a piece of data that has been previously associated with a menu item.
SetMenuItemProperty Associates data with a menu item.

Controlling Menu Bar Visibility

HideMenuBar Conceals the menu bar.
IsMenuBarVisible Reports whether the menu bar is currently visible.
ShowMenuBar Displays the menu bar.

Creating Menus

GetMenu Creates a menu from the specified menu and extended menu resources.

Enabling Menus and Menu Items

DisableMenuItem Disables a menu item or a menu.
DisableMenuItemIcon Disables the icon associated with a menu item.
EnableMenuItem Enables a menu item or a menu.
EnableMenuItemIcon Enables the icon associated with a menu item.
IsMenuItemEnabled Reports whether a given menu or menu item is enabled.
IsMenuItemIconEnabled Reports whether a given menu item icon is enabled.

Initializing the Menu Manager

InitContextualMenus Adds a program to the system registry of contextual menu clients.
InitProcMenu Sets the mbResID field of the current menu list to the resource ID of a custom 'MBDF' resource.
ProcessIsContextualMenuClient Determines whether a given program is a contextual menu client.

Manipulating and Accessing Menu Item Characteristics

GetMenuItemCommandID Obtains a menu item’s command ID.
GetMenuItemFontID Obtains a menu item’s font ID.
GetMenuItemHierarchicalID Obtains the menu ID of a specified submenu.
GetMenuItemIconHandle Obtains a handle to a menu item’s icon.
GetMenuItemKeyGlyph Obtains the keyboard glyph for a menu item’s keyboard equivalent.
GetMenuItemModifiers Obtains the modifier keys that must be pressed with a character key to select a particular menu item.
GetMenuItemRefCon Obtains application-specific information for a menu item.
GetMenuItemRefCon2 Obtains application-specific information for a menu item.
GetMenuItemTextEncoding Obtains the text encoding used for a menu item’s text.
SetItemCmd Sets the value of the keyboard equivalent field of a menu item.
SetMenuItemCommandID Sets a menu item’s command ID.
SetMenuItemFontID Sets the font for a menu item.
SetMenuItemHierarchicalID Attaches a submenu to a menu item.
SetMenuItemIconHandle Sets a menu item’s icon.
SetMenuItemKeyGlyph Substitutes a keyboard glyph for the glyph normally displayed for a menu item’s keyboard equivalent.
SetMenuItemModifiers Sets the modifier key(s) that must be pressed with a character key to select a particular menu item.
SetMenuItemRefCon Sets application-specific information for a menu item.
SetMenuItemRefCon2 Sets additional application-specific information for a menu item.
SetMenuItemTextEncoding Sets the text encoding for a menu item’s text.

Modifying the Menu Width

GetMenuExcludesMarkColumn Returns whether a menu contains space for mark characters.
SetMenuExcludesMarkColumn Sets whether a menu contains space for mark characters.

Responding to the User’s Choice of a Menu Command

ContextualMenuSelect Displays a contextual menu.
IsShowContextualMenuClick Determines whether a particular event could invoke a contextual menu.
MenuEvent Maps a keyboard combination from the event structure to the keyboard equivalent of a menu item in a menu in the current menu list.
MenuKey Maps a character key with the Command key to determine the keyboard equivalent of a menu item in a menu in the current menu list.

Miscellaneous

AppendMenu
AppendMenuItemWithCFString
AppendResMenu
CalcMenuSize
CallMBarHookProc
CallMenuBarDefProc
CallMenuDefProc
CallMenuHookProc
ChangeMenuAttributes
ChangeMenuItemAttributes
ChangeMenuItemPropertyAttributes
CheckItem
CheckMenuItem
ClearMenuBar
CloneMenu
CopyMenuItemAsCFString
CopyMenuItems
CopyMenuTitleAsCFString
CountMItems
CountMenuItems
CountMenuItemsWithCommandID
CreateCustomMenu
CreateNewMenu
CreateStandardFontMenu
DeleteMCEntries
DeleteMenu
DeleteMenuItem
DeleteMenuItems
DisableAllMenuItems
DisableItem
DisableMenuCommand
DisposeMBarHookUPP
DisposeMCInfo
DisposeMenu
DisposeMenuBar
DisposeMenuBarDefUPP
DisposeMenuDefUPP
DisposeMenuHookUPP
DrawMenuBar
DuplicateMenu
DuplicateMenuBar
EnableAllMenuItems
EnableItem
EnableMenuCommand
FlashMenuBar
GDBShowMenuInfo
GDBShowMenuItemInfo
GDBShowMenuList
GetFontFamilyFromMenuSelection
GetIndMenuItemWithCommandID
GetItemCmd
GetItemIcon
GetItemMark
GetItemStyle
GetMBarHeight
GetMCEntry
GetMCInfo
GetMenuAttributes
GetMenuBar
GetMenuCommandMark
GetMenuCommandProperty
GetMenuCommandPropertySize
GetMenuDefinition
GetMenuHandle
GetMenuHeight
GetMenuID
GetMenuItemAttributes
GetMenuItemData
GetMenuItemHierarchicalMenu
GetMenuItemPropertyAttributes
GetMenuItemText
GetMenuOwnerCount
GetMenuTitle
GetMenuTrackingData
GetMenuType
GetMenuWidth
GetNewMBar
GetRootMenu
HiliteMenu
InitMenus
InsertFontResMenu
InsertIntlResMenu
InsertMenu
InsertMenuItem
InsertMenuItemWithCFString
InsertResMenu
InvalMenuBar
InvokeMBarHookUPP
InvokeMenuBarDefUPP
InvokeMenuDefUPP
InvokeMenuHookUPP
IsMenuCommandEnabled
IsValidMenu
MenuChoice
MenuHasEnabledItems
MenuSelect
NewMBarHookProc
NewMBarHookUPP
NewMenu
NewMenuBarDefProc
NewMenuBarDefUPP
NewMenuDefProc
NewMenuDefUPP
NewMenuHookProc
NewMenuHookUPP
PopUpMenuSelect
RegisterMenuDefinition
RemoveMenuCommandProperty
SetItemIcon
SetItemMark
SetItemStyle
SetMCEntries
SetMCInfo
SetMenuBar
SetMenuCommandMark
SetMenuCommandProperty
SetMenuDefinition
SetMenuFlash
SetMenuFlashCount
SetMenuHeight
SetMenuID
SetMenuItemData
SetMenuItemHierarchicalMenu
SetMenuItemText
SetMenuItemWithCFString
SetMenuTitle
SetMenuTitleWithCFString
SetMenuWidth
SetRootMenu
SystemEdit
SystemMenu
UpdateStandardFontMenu
appendmenu
getmenuitemtext
insertmenuitem
menuselect
newmenu
setmenuitemtext

© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)